package com.hjq.demo.ui.activity

import android.view.View
import cn.cucsi.myframe.R
import com.flyjingfish.android_aop_core.annotations.SingleClick
import com.hjq.demo.app.AppActivity

/**
 *    author : Yang
 *    time   : 2024/05/24
 *    desc   : 账号相关案例
 */
class AccountRelatedActivity : AppActivity() {

    override fun getLayoutId(): Int {
        return R.layout.account_related_activity
    }

    override fun initView() {
        setOnClickListener(
            R.id.btn_mine_login,
            R.id.btn_mine_register,
            R.id.btn_mine_forget,
            R.id.btn_mine_reset,
            R.id.btn_mine_change,
            R.id.btn_mine_personal
        )
    }

    override fun initData() {}

    @SingleClick
    override fun onClick(view: View) {
        when (view.id) {
            R.id.btn_mine_login -> {
                startActivity(LoginActivity::class.java)
            }

            R.id.btn_mine_register -> {
                startActivity(RegisterActivity::class.java)
            }

            R.id.btn_mine_forget -> {
                startActivity(PasswordForgetActivity::class.java)
            }

            R.id.btn_mine_reset -> {
                startActivity(PasswordResetActivity::class.java)
            }

            R.id.btn_mine_change -> {
                startActivity(PhoneResetActivity::class.java)
            }

            R.id.btn_mine_personal -> {
                startActivity(PersonalDataActivity::class.java)
            }
        }
    }
}